package ys.ewp.po;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @description 任务参与者PO
 */
@Entity
@Table(name="tb_task_participant")
public class TaskParticipant extends BasePo{
	//用户
	private Employee employee;
	//任务
	private Task task;
 
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="participant_id")
	public Employee getEmployee() {
		return employee;
	}
	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
	@ManyToOne
	@JoinColumn(name="task_id")
	public Task getTask() {
		return task;
	}
	public void setTask(Task task) {
		this.task = task;
	}
	
	
	
}
